%%% ------------------------------------------------------------------ 
%%% Licensed under the Apache License, Version 2.0 (the 'License');
%%%  you may not use this file except in compliance with the License.
%%%  You may obtain a copy of the License at
%%%
%%%      http://www.apache.org/licenses/LICENSE-2.0
%%%
%%% Copyright (c) 2017 dwg <bypf2009@vip.qq.com>
%%%
%%%  Unless required by applicable law or agreed to in writing, software
%%%  distributed under the License is distributed on an 'AS IS' BASIS,
%%%  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%%%  See the License for the specific language governing permissions and
%%%  limitations under the License.
%%%
%%% @doc  
%%% @author  dwg <'bypf2009@vip.qq.com'> 
%%% @copyright 2017 dwg <bypf2009@vip.qq.com>
%%% @end
%%% created|changed : 2017-05-22 13:49
%%% coding : utf-8 
%%% ------------------------------------------------------------------ 
-record ( yangan_status, {
	frame_count, 
	fire_alarm,
	fault_alarm,
	lb_alarm, 
	tem_alarm, 
	temp_perature,
	reserved
}).

%% HBI: HearbeatInterval
%% TDI: TempDetectInterval
%% TTL: TempThrl
%% TempThrH: TTH
-record ( yangan_parameters, {
	mote_type, 
	mode1,
	hw_version, 
	sw_version, 
	hbi,
	tdi, 
	alarm_interval, 
	ttl,
	tth
}).

-record ( yangan_control, {
	silent_time,
	stop_fire_alarm, 
	stop_fault_alarm,
	stop_lb_alarm, 
	stop_temp_alarm
}).

-record ( yangan_command, {
	set_hbi,
	set_tdi, 
	set_tt, 
	restore,
	reset, 
	tdi, 
	hbi, 
	ttl,
	tth, 
	alarm_interval
}).